🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / screenshot-tests / src / screenshotTest / kotlin / org / meshtastic / screenshots / core / AdaptiveTwoPaneScreenshotTests.kt
Displaying Raw • Download
screenshot-tests/src/screenshotTest/kotlin/org/meshtastic/screenshots/core/AdaptiveTwoPaneScreenshotTests.kt fix/qr-error-correction (7b45f84f) Text, 1.77 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.screenshots.core
Tff7b72import T7ee787androidx.compose.runtime.Composable
Tff7b72import T7ee787androidx.compose.ui.tooling.preview.Preview
Tff7b72import T7ee787com.android.tools.screenshot.PreviewTest
Tff7b72import T7ee787org.meshtastic.core.ui.component.AdaptiveTwoPaneSample
T8b949e// Guards the AdaptiveTwoPane breakpoint (Meshtastic-Android#5874): the panes must stay stacked at
T8b949e// compact/medium widths and only split side-by-side once the window is expanded (>= 840dp). A
T8b949e// regression that splits too early (e.g. at 600dp) squishes content on tablets in portrait and will
T8b949e// diff these references.
Tf0883e@PreviewTest
Tf0883e@PreviewTb4b4b4(Te6edf3name Tff7b72= Ta5d6ff"Ta5d6ffcompact 360dp - stackedTa5d6ff"Tb4b4b4, Te6edf3widthDp Tff7b72= T79c0ff3T79c0ff6T79c0ff0Tb4b4b4, Te6edf3heightDp Tff7b72= T79c0ff6T79c0ff4T79c0ff0Tb4b4b4)
Tf0883e@Composable
Tff7b72fun Td2a8ffScreenshotAdaptiveTwoPaneCompactTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3AdaptiveTwoPaneSampleTb4b4b4(Tb4b4b4)
Tb4b4b4}
Tf0883e@PreviewTest
Tf0883e@PreviewTb4b4b4(Te6edf3name Tff7b72= Ta5d6ff"Ta5d6ffmedium 720dp - stackedTa5d6ff"Tb4b4b4, Te6edf3widthDp Tff7b72= T79c0ff7T79c0ff2T79c0ff0Tb4b4b4, Te6edf3heightDp Tff7b72= T79c0ff9T79c0ff0T79c0ff0Tb4b4b4)
Tf0883e@Composable
Tff7b72fun Td2a8ffScreenshotAdaptiveTwoPaneMediumTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3AdaptiveTwoPaneSampleTb4b4b4(Tb4b4b4)
Tb4b4b4}
Tf0883e@PreviewTest
Tf0883e@PreviewTb4b4b4(Te6edf3name Tff7b72= Ta5d6ff"Ta5d6ffexpanded 900dp - splitTa5d6ff"Tb4b4b4, Te6edf3widthDp Tff7b72= T79c0ff9T79c0ff0T79c0ff0Tb4b4b4, Te6edf3heightDp Tff7b72= T79c0ff7T79c0ff2T79c0ff0Tb4b4b4)
Tf0883e@Composable
Tff7b72fun Td2a8ffScreenshotAdaptiveTwoPaneExpandedTb4b4b4(Tb4b4b4) Tb4b4b4{
Te6edf3AdaptiveTwoPaneSampleTb4b4b4(Tb4b4b4)
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.05s